package ar.com.e2solver.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class FileActionListener implements ActionListener {

	E2SolverView view;

	public FileActionListener(E2SolverView view) {
		this.view = view;
	}

	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("Abrir")){
			view.openPuzzle();
		} else if (e.getActionCommand().equals("Guardar")){
			view.savePuzzle();
		}
		
	}

}
